﻿// Copyright 2012 Stuart Turner
// Licensed under the Apache License, Version 2.0 [http://www.apache.org/licenses/LICENSE-2.0]

using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;

using Complete.Data.Linq.Expressions;

namespace Complete.Data.Internal
{
	internal class QueryOptimizer : CompleteExpressionVisitor
	{
		private QueryOptimizer()
		{
		}

		public static Expression Optimize(Expression expr)
		{
			var qt = new QueryOptimizer();
			expr = qt.Visit(expr);
			return expr;
		}
	}
}
